const root = process.cwd()

const prompt = {
  description: 'create a component',
  prompts: [
    {
      type: 'input',
      name: 'name',
      message: 'component name'
    }
  ],
  actions: [
    {
      type: 'add',
      path: root + '/src/components/{{name}}/index.vue',
      templateFile: root + '/plop-templates/component/component.hbs'
    }
  ]
}

module.exports = prompt
